import Vue from 'vue'
import Router from 'vue-router'
import Index from '@/components/Index'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/crm',
      name: 'index',
      component: Index
      ,children:[
        {
          path:"customer",
          component: () => import('@/components/customer/List')
        }
      ]
    },
    {
      path: '/',
      name: 'login',
      component: () => import('@/components/Login')
    }
  ]
})
